﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Application.Data.Migrations
{
    public partial class init2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Url",
                table: "job_jobTask_record",
                newName: "Content");

            migrationBuilder.RenameColumn(
                name: "Url",
                table: "job_jobTask",
                newName: "Content");

            migrationBuilder.AddColumn<string>(
                name: "JobType",
                table: "job_jobTask_record",
                type: "varchar(20)",
                nullable: false,
                defaultValue: "")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "JobType",
                table: "job_jobTask",
                type: "varchar(20)",
                nullable: false,
                defaultValue: "")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "JobType",
                table: "job_jobTask_record");

            migrationBuilder.DropColumn(
                name: "JobType",
                table: "job_jobTask");

            migrationBuilder.RenameColumn(
                name: "Content",
                table: "job_jobTask_record",
                newName: "Url");

            migrationBuilder.RenameColumn(
                name: "Content",
                table: "job_jobTask",
                newName: "Url");
        }
    }
}
